home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (3rd Edition)
/
The Business Master (3rd Edition).iso
/
files
/
utilstem
/
stackbat
/
bu40smll.exe
/
SHOWDEMO.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-12-23
|
2KB
|
63 lines
:Batutil c(o) 1990, 1991 Barry Simon and Richard Wilson
: Version 4.0
echo off
cls
batutil {inc %0 code}
goto end
:echo1
@1FBATUTIL @1Ehas a number of tools to spruce up what you display on
the screen during batch files. You can use the PRetty command to control
colors so that
@1FBATUTIL {PR @@1EC@@1Fo@@1Al@@1Do@@1Br}
would display as
@1EC@1Fo@1Al@1Do@1Br
BATUTIL can also display
:echo2
The BIG letters can have varrying
:echo3
The strings that you echo (or that you place in the environment) have
metastring translation, that is shorthand expressions which are converted at
the time the batch file is run just as the DOS PROMPT command changes $$t to
the current time. These include:
@0A SHORTHAND MEANING TRANSLATION
@0A ──────────── ──────────────── ───────────────────
@0E $$p @0B current path @0F $p
@0E $$W @0B day of week @0F $W
@0E $$E @0B date in full @0F $E
@0E $$H:$$m @0B time as HH:MM @0F $H:$m
One can place small amounts of material to echo on the command line and take
whole screenfuls like this from a file. In fact, this screen is part of
the batch file itself!!
@0F Thanks for using BATUTIL. Hit a key to exit.
:code
CU - {CL} RO 2
FP %0 echo1
BE $S$SBIG
EC $_letters. Hit a key for more [] GE ELSE
AT 0F {CL}
FE %0 echo2
CO 8 [] BP @0BC@06o@02L@0Co@0ER@0Ds
AT 0F [] GE WA2 [] EC $_and foregrounds$_$_
CO 28 [] AT 0E [] BI 255 [] BE H^
BI 01 [] BE i^
BI 19 [] BE !
GE WA6 EL
AT 02 {CL} FP %0 echo3 {GE EL}
:end